#!/usr/bin/env bash

docker run -it --rm --cap-add=NET_ADMIN \
    -p 1194:1194/udp -p 80:8080/tcp \
    -v /mnt/openvpn/data/Dockovpn_data:/opt/Dockovpn_data \
    -v {OPEN_VPN_CONFIG_FILE_PATH}:/etc/openvpn/server.conf \
    -v {RADIUS_PLUGIN_CONFIG_FILE_PATH}:/etc/openvpn/radiusplugin.conf \
    -e HOST_ADDR=$(curl -s https://api.ipify.org) \
    -d --name dockovpn seanmurphy010/openvpn-with-radiusplugin:v-0.1alpha